package Work2;

import java.math.BigDecimal;
import java.util.Scanner;

public class Pro5 {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);

		while(true){
			BigDecimal bd1 = new BigDecimal(in.next());
			BigDecimal bd2 = new BigDecimal(in.next());
			System.out.println(bd1.add(bd2));
			System.out.println(bd1.multiply(bd2));
		}

	}

}
